package com.example.demo.dao;

import com.example.demo.entity.Food;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * @author cc
 * @date 2018/9/19 13:19
 */
@Component
public interface FoodManager {
    void storeFood(Food food);

    void updateFoodCount(Food food);

    Food queryFoodByName(String foodName);

    void takeFood(@Param("foodNo") String foodNo, @Param("count") Long count);

    void clearFood(String foodNo);
}
